#include <stdio.h>
#include "list.h"

int init_list(ListNode *list)
{
        list = malloc(sizeof(ElemType) * MAXSIZE);
        if (list == NULL)
                return -1;

        for (int i = 1; i < MAXSIZE - 1; ++i)
                list[i].cur = i + 1;

        list[MAXSIZE - 1].cur = 0;

        return 0;
}

int insert(ListNode *list,ElemType x)
{
        
}